package com.eirikb.shared.events;

import com.eirikb.client.Client;

/**
 *
 * @author eirikb
 */
public class NickTakenEvent extends Event {
    
    public void execute(Client client) {
        if (!client.isLoggedIn()) {
            client.loop(false);
            client.getLogin().setInfo("Nick allerede ibruk, se FAQ");
            client.getLogin().enableSumit();
        } else {
            client.getChat().addChat("* Nick allerede ibruk");
        }
    }

}
